package com.itheima.dao;

import com.itheima.pojo.User;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Update;

public interface UserMapper {

    User userByUserName(@Param("username") String username);

    @Update("update t_user set password = #{pass} where username = #{username} ")
    void changePassword(@Param("pass") String pass, @Param("username") String username);
}
